<template>
  <div>
    御剑乘风来,除魔天地间!
    <img alt src="http://ajax-api.itheima.net/images1/4.webp" v-errorg="img" />
  </div>
</template>
<script>
import img from './assets/logo.png'
export default {
  name: '',
  data () {
    return {
      img
    }
  },
  created () {
  },
  computed: {
  },
  directives: {
    errorg: {
      inserted (el, binding) {
        el.onerror = function () {
          el.src = binding.value
        }
      }
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
